package com.supermarket.user.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.supermarket.user.domain.Coupon;
import com.supermarket.user.domain.dto.CouponDto;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface CouponMapper extends BaseMapper<Coupon> {
    List<Coupon> getCouponList(CouponDto couponDto);

    List<Coupon> listByUserId(Long userId);
}
